<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BSentence
 *
 * @author I062261
 */
class BTSentence extends BWEntity {

    //put your code here
    public $language = null;
    public $sentence = null;
    public $translateId = null;
    public $memberType;

    public function __construct($language = 'english') {
        $this->language = $language;
    }    

    public function getRepository($data = NULL) {
        $repository = parent::getRepository($data);
        if ($this->language == BTLanguage::CHINESE)
            $repository->setModel('BTMSentenceChinese');
        if ($this->language == BTLanguage::ENGLIST)
            $repository->setModel('BTMSentenceEnglish');
        $repository->addPropertyToColumnMap('sentence', 'sentence');
        $repository->addPropertyToColumnMap('translateId', 'translation_id');
        return $repository;
    }   

}

?>
